package com.etung.iot.demo.modles;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("iot_storage")
public class StorageEntity {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String imei;
    @TableField("port_id")
    private Integer portId;
    @TableField("device_id")
    private Integer deviceId;
    @TableField("var_id")
    private Integer varId;
    private Integer type;
    @TableField("sampling_period")
    private Integer samplingPeriod;
    @TableField("up_limit")
    private String upLimit;
    @TableField("lower_limit")
    private String lowerLimit;
    @TableField("condition_rule")
    private String conditionRule;
}
